package com.esteel.settlement.pa.packet;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 交易网对银行监管系统发起交易的应答包
 * @author zhangxiuzhi
 *
 */
@XmlRootElement(name="Result")
@XmlAccessorType(XmlAccessType.FIELD)  
public class Answer extends PaPacket {



	@Override
	protected String[] order() {
		String[] strs = {"thirdLogNo","reserve"};
		return strs;
	}

	@Override
	protected String tranFunc() {
		return null;
	}

	/**
	 * 判断返回的数据是否正确
	 * @return
	 */
	public boolean isSuccess(){
		return PaPacket.SUCCESS.equals(this.getRspCode());
	}

	
	
}
